<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=yes" />
		<title>国际肝胆</title>
	</head>
	<body>

		<!-- 统计代码 -->
		<div style="display:none">

			<script type="text/javascript" src="https://s4.cnzz.com/z_stat.php?id=1279539278&web_id=1279539278"></script>

			 
		</div>
		<!-- 头 -->
		<div>
			<div style="text-align: center;">
				<img style="margin-top: 40pt; width: 80%;height: ;" src="./img/gandan/标题.png">
			</div>
			<div>
				<img style="position: fixed; width: 100%;" src="img/gandan/圆点.png" />
			</div>
			<div style="margin-top: 60pt;text-align: center;">
				<img style="width: 60%;" src="img/gandan/样机.png" />
			</div>
			<div style="height: 200pt;"></div>
		</div>
		<div>

			<div style="position: fixed;bottom: -5pt;left: 0pt; text-align: center;">
				<img style="width: 100%;" src="img/gandan/波浪.png" />
			</div>
			<div style="position: fixed;bottom: 0pt;text-align: center;max-width: 800pt;">
				<div style="margin-bottom: 40pt;">
					<a href="https://apps.apple.com/cn/app/id1532164978">
						<img src="img/gandan/苹果下载.png" style="margin-bottom: 18pt;width: 60%;" />
					</a>


                   <a onclick="androdiDownloadClick()"  >
						<img src="img/gandan/安卓下载.png" style="=;width: 60%;" />
					</a>
					<!-- <a href="https://a.app.qq.com/o/simple.jsp?pkgname=medical.willmid.wlx">
						<img src="img/gandan/安卓下载.png" style="=;width: 60%;" />

					</a> -->

				</div>
			</div>
		</div>

	</body>
	<script>
		var browser = {
			versions: function() {
				var u = navigator.userAgent,
					app = navigator.appVersion;
				return { //移动终端浏览器版本信息
					trident: u.indexOf('Trident') > -1, //IE内核
					presto: u.indexOf('Presto') > -1, //opera内核
					webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
					gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
					mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
					ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
					android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
					iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
					iPad: u.indexOf('iPad') > -1, //是否iPad
					webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
				};
			}(),
			language: (navigator.browserLanguage || navigator.language).toLowerCase()
		}
	
		function androdiDownloadClick() {
			if (browser.versions.mobile) { //判断是否是移动设备打开。browser代码在下面
				var ua = navigator.userAgent.toLowerCase(); //获取判断用的对象
				if (ua.match(/MicroMessenger/i) == "micromessenger") {
					//在微信中打开
					alert('点击右上角按钮，然后在弹出的菜单中，点击在浏览器中打开，即可安装。')
					return;
				}
				// window.location.href = "./download/zhaoyao/2.4.3.apk";
				window.location.href = "https://zhaoyao-app.oss-cn-hangzhou.aliyuncs.com/gandan_download/1.4.0.apk";
				 
				//js页面跳转  
	
				//  
				if (ua.match(/WeiBo/i) == "weibo") {
					//在新浪微博客户端打开
				}
				if (ua.match(/QQ/i) == "qq") {
					//在QQ空间打开
				}
				if (browser.versions.ios) {
					//是否在IOS浏览器打开
				}
				if (browser.versions.android) {
					//是否在安卓浏览器打开
				}
			} else {
				//否则就是PC浏览器打开
			}
		}
	
		function getQueryVariable(variable) {
			var query = window.location.search.substring(1);
			var vars = query.split("&");
			for (var i = 0; i < vars.length; i++) {
				var pair = vars[i].split("=");
				if (pair[0] == variable) {
					return pair[1];
				}
			}
			return (false);
		}
		//点击下载按钮判断
		function appDown() {
			var u = navigator.userAgent;
			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
			
			var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
			
			var ufrom = getQueryVariable("ufrom")
			// console.log(ufrom)
			if(ufrom == false){
				ufrom = '新增';
			}
			if (isiOS) {
				// 类别+操作+标签
				// _czc.push(["_trackEvent", '找药分享页面', '下载', 'iOS下载_'+ufrom, '1', ufrom]);
				// window.location.href = 'iOS下载地址'
				window.location.href = "https://apps.apple.com/cn/app/id1535887150";
	
			} else if (isAndroid) {
				// _czc.push(["_trackEvent", '找药分享页面', '下载', 'Android下载_'+ufrom, '1', ufrom]);
				// window.location.href = '安卓下载地址'
				androdiDownloadClick();
			}
		}
	</script>
</html>
